package top.ztf.erp.web;


import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * 通用的servlet
 */
@WebServlet("/common")
public class CommonServlet extends BaseServlet{

    public void resource(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        String resource = req.getParameter("resource");
        req.getRequestDispatcher(resource).forward(req,resp);
    }

}
